package com.peng.edu.client;

import com.peng.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name="service-vod",fallback = VodClientImpl.class)
public interface VodClient {

    @DeleteMapping("/vod/video/removeAliyunVideo/{id}")
    public Result removeAliyunVideo(@PathVariable("id") String id);

    //根据视频Id删除视频
    @DeleteMapping("/vod/video/removeBatch")
    public Result removeBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
